﻿@model Quadrant.domain.Models.Stick
<div id="update-stick" class="modal fade in" tabindex="-1" role="dialog" aria-hidden="false">
    <div class="modal-dialog modal-slacker">
        <div id="mcontent" class="modal-content">
            <div class="modal-body">
                <h4 class="modal-title">Add/Update a Sticker</h4>
                <br />
                <form role="form" method="post" id="formstick" data-ajax-method="POST" data-ajax="true" class="form-horizontal" novalidate="novalidate">
                    @Html.HiddenFor(m => m.Id)
                    @Html.HiddenFor(m=>m.QuadrantId)
                    <div class="form-group">
                        <div class="form-group">
                            @Html.LabelFor(m => m.Name, new { @class = "col-sm-2 control-label" })
                            <div class="col-sm-10">
                                @Html.TextBoxFor(m => m.Name, new { @class = "form-control input-lg", placeholder = "Sticker title" })
                                @Html.ValidationMessageFor(m => m.Name, null, new { @class = "text-danger" })
                            </div>
                        </div>
                        <div class="form-group">
                            @Html.LabelFor(m => m.Comments, new { @class = "col-sm-2 control-label" })
                            <div class="col-sm-10">
                                @Html.TextAreaFor(m => m.Comments, new
                                {
                                    @class = "form-control",
                                    placeholder = "Write some comments on your stick",
                                    rows = 3
                                })
                            </div>
                        </div>
                         <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button id="btn-save-stick" type="submit" class="btn btn-primary">Save</button>
                                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>

        </div>
    </div>
</div>
